//
//  FMDBDataInteractionObject.h
//  XinLiJianKangJiaoYu
//
//  Created by 李文强 on 2018/12/6.
//  Copyright © 2018 sijiaokeji. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LoginModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface FMDBDataInteractionObject : NSObject
@property (nonatomic, strong) FMDatabase *db;
@property (nonatomic, strong) NSString *fileName;
//单例
+ (FMDBDataInteractionObject *)manager;
//创建用户信息数据库表
- (BOOL)createDataBase:(NSString *)baseName;
//插入用户信息
- (BOOL)insertUserInfo:(LoginModel *)model;
//查询表是否存在
- (BOOL)existTable:(NSString *)tabName;
//取出数据
- (LoginModel *)getUserData;
//更新用户
- (BOOL)uploadUserInfor:(LoginModel *)model;
@end

NS_ASSUME_NONNULL_END
